﻿using net461;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DemoWindows
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var param = this.textBox1.Text;
            Methods me = new Methods();
            var res = me.TestLDAP(param+ "ou=上海华谊（集团）公司,dc=shhuayi,dc=com");
            this.textBox2.Text = res;
        }
    }
}
